package br.ufrn.imd.comum

import grails.converters.JSON

class AlunoController {

    static scaffold=true

    def listaAjax(){
		render Aluno.list() as JSON
    }
	
	def salvarAjax(){
		Aluno aluno = new Aluno()
		aluno.nome =  params.nome
		aluno.matricula = params.matricula
		
		render aluno.save(flush:true) as JSON
	}
}
